
import pandas as pd
import numpy as np

# column = 2

data_to_plot = np.zeros(100, dtype=int)

# for i in range(100):
#     data = pd.read_csv("../log/1665990371227706400.log", skiprows=i, delimiter=',', nrows=1, names=None, encoding="utf8", header=None, usecols=[column])
#     data = np.array(data)
#     print(data)


def read_one_data(file_path, column, row):
    data = pd.read_csv(file_path, skiprows=row, delimiter=',', nrows=1, names=None, encoding="utf8", header=None, usecols=[column])
    data = np.array(data)
    print(data)
    return data

print(data_to_plot)
data_to_plot[0] = read_one_data("../log/1665990371227706400.log", 2, 100)

print(data_to_plot)